﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;

namespace RM.Data
{
    public class RmDataModelContainer:DbContext
    {
        public RmDataModelContainer()
            : base("RmDataModelContainer")
        {

        }
        public DbSet<RecordDay> RecordDays { get; set; }
        public DbSet<RecordTime> RecordTimes { get; set; }
        public DbSet<tb_Commen_Settings> tb_Commen_Settings { get; set; }
        public DbSet<tb_Security_Module> tb_Security_Module { get; set; }
        public DbSet<tb_Security_Role> tb_Security_Role { get; set; }
        public DbSet<tb_Security_User> tb_Security_User { get; set; }

        public virtual void Commit()
        {
            base.SaveChanges();
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
